﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ProfileManagement.ascx.cs"
    Inherits="Admin_UserControls_ProfileManagement" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<style type="text/css">
    .menuleft_small
    {
        width: 225px;
    }
    .menuleft_lagre
    {
        width: 300px;
    }
    .errorMessage
    {
        color: Red;
    }
    .button
    {
        width: 85px;
    }
</style>
<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
</telerik:RadScriptManager>
<div class="title">
    <h5>
        QUẢN LÝ HỒ SƠ
    </h5>
</div>
<div class="table">
    <asp:Panel ID="Panel1" runat="server">
        <telerik:RadGrid ID="RadGrid1" runat="server" AllowSorting="True" GridLines="None"
            AllowPaging="True" OnPreRender="RadGrid1_PreRender" OnItemCommand="RadGrid1_iTemcommand"
            AutoGenerateColumns="False" Skin="Office2007">
            <MasterTableView NoMasterRecordsText="Không có kết quả">
                <%--<CommandItemTemplate>
                    <asp:Image ID="Image1" runat="server" ImageUrl="~/Files/images/add.gif" />
                    <asp:LinkButton ID="LinkButton_Add" runat="server" CommandName="Them" AccessKey="N">Thêm người dùng</asp:LinkButton>
                </CommandItemTemplate>--%>
                <RowIndicatorColumn>
                    <HeaderStyle Width="20px"></HeaderStyle>
                </RowIndicatorColumn>
                <ExpandCollapseColumn>
                    <HeaderStyle Width="20px"></HeaderStyle>
                </ExpandCollapseColumn>
                <Columns>
                    <telerik:GridBoundColumn DataField="profile_id" DataType="System.Int32" HeaderText="ProfileID"
                        UniqueName="profile_id" Visible="false">
                    </telerik:GridBoundColumn>
                    <telerik:GridButtonColumn Text="Xem" UniqueName="Xem" CommandName="Xem" ImageUrl="~/Files/images/view.gif"
                        HeaderImageUrl="~/Files/images/view.gif">
                    </telerik:GridButtonColumn>
                    <telerik:GridBoundColumn DataField="username" HeaderText="Tên tài khoản" UniqueName="username">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="nick_name" HeaderText="Tên thường gọi" UniqueName="nick_name">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="dob" HeaderText="Ngày sinh" UniqueName="dob"
                        DataType="System.DateTime" DataFormatString="{0:dd/MM/yyyy}">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Gioitinh" HeaderText="Giới tính" UniqueName="Gioitinh">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="phone" HeaderText="Điện thoại" UniqueName="phone">
                    </telerik:GridBoundColumn>
                    <telerik:GridButtonColumn Text="Sửa" UniqueName="Sua" CommandName="Sua" ImageUrl="~/Files/images/edit.gif"
                        HeaderImageUrl="~/Files/images/edit.gif">
                    </telerik:GridButtonColumn>
                    <telerik:GridButtonColumn Text="Xóa" UniqueName="Xoa" CommandName="Xoa" ConfirmText="Bạn có chắc chắn muốn xóa?"
                        ImageUrl="~/Files/images/delete.gif" HeaderImageUrl="~/Files/images/delete.gif">
                    </telerik:GridButtonColumn>
                </Columns>
            </MasterTableView>
            <ClientSettings>
                <Selecting AllowRowSelect="True" />
            </ClientSettings>
        </telerik:RadGrid>
    </asp:Panel>
    <asp:Panel ID="Panel2" runat="server">
        <table style="width: 100%; margin-top: 25px;">
            <tr>
                <td style="width: 20%">
                    Tên tài khoản:
                </td>
                <td style="width: 80%">
                    <asp:Label ID="Label_UserName" runat="server" MaxLength="30" CssClass="menuleft_small"></asp:Label>
                </td>
            </tr>
            <tr>
                <td>
                    Số lượt yêu thích:
                </td>
                <td>
                    <asp:Label ID="Label_Rating" runat="server" CssClass="menuleft_small" MaxLength="30"></asp:Label>
                </td>
            </tr>
            <tr>
                <td>
                    Tên thường gọi:
                </td>
                <td>
                    <asp:TextBox ID="TextBox_Nickname" runat="server" MaxLength="50" CssClass="menuleft_small"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td style="width: 20%">
                    Ngày sinh:
                </td>
                <td>
                    <telerik:RadDatePicker ID="RadDatePicker_Birthday" runat="server" Culture="Vietnamese (Vietnam)"
                        FocusedDate="1990-05-01" MinDate="1980-05-01" Skin="Office2007">
                        <Calendar Skin="Office2007" runat="server" UseColumnHeadersAsSelectors="False" UseRowHeadersAsSelectors="False"
                            ViewSelectorText="x">
                        </Calendar>
                        <DatePopupButton HoverImageUrl="" ImageUrl="" />
                        <DateInput runat="server" DateFormat="dd/MM/yyyy" DisplayDateFormat="dd/MM/yyyy">
                        </DateInput>
                    </telerik:RadDatePicker>
                </td>
            </tr>
            <tr style="width: 20%">
                <td>
                    Giới tính:
                </td>
                <td>
                    <asp:RadioButtonList ID="RadioButtonList_Gender" runat="server" RepeatDirection="Horizontal">
                        <asp:ListItem Selected="True" Value="0">Nam</asp:ListItem>
                        <asp:ListItem Value="1">Nữ</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
            <tr>
                <td>
                    Giới thiệu:
                </td>
                <td>
                    <asp:TextBox ID="TextBox_About" runat="server" MaxLength="50" CssClass="menuleft_small"
                        Rows="3" TextMode="MultiLine"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    Tình trạng hôn nhân:
                </td>
                <td>
                    <asp:TextBox ID="TextBox_Relationship" runat="server" CssClass="menuleft_small"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    Mong đợi:
                </td>
                <td>
                    <asp:TextBox ID="TextBox_Lockingfor" runat="server" CssClass="menuleft_small"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    Số điện thoại:
                </td>
                <td>
                    <asp:TextBox ID="TextBox_Phone" onchange='javascript:return ValidateNumberic()' runat="server"
                        MaxLength="15" CssClass="menuleft_small"></asp:TextBox>
                    <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToValidate="TextBox_Phone"
                        ErrorMessage="Phải là số" Operator="DataTypeCheck" Type="Integer" ValidationGroup="ProfileManage"></asp:CompareValidator>
                </td>
            </tr>
            <tr style="width: 20%">
                <td>
                    Quan tâm đến:
                </td>
                <td>
                    <asp:TextBox ID="TextBox_Interes" runat="server" CssClass="menuleft_small"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    Tình trạng học vấn:
                </td>
                <td>
                    <asp:DropDownList ID="DropDownList2" CssClass="menuleft_small" runat="server">
                        <asp:ListItem Selected="True" Value="0">Tốt nghiệp THPT</asp:ListItem>
                        <asp:ListItem Value="1">Đại học</asp:ListItem>
                        <asp:ListItem Value="2">Tốt nghiệp đại học</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td>
                    Sở thích:
                </td>
                <td>
                    <asp:TextBox ID="TextBox_Hobbi" runat="server" CssClass="menuleft_small" MaxLength="50"
                        Rows="3" TextMode="MultiLine"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;
                </td>
                <td>
                    <asp:Label ID="Label_Result" runat="server" ForeColor="Red"></asp:Label>
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                    <asp:Button ID="Button_OK" runat="server" CssClass="button" Text="Cập nhật" Width="85px"
                        OnClientClick="return Validator(6)" OnClick="Button_OK_Click" ValidationGroup="ProfileManage" />
                </td>
            </tr>
        </table>
    </asp:Panel>
</div>
